package com.xl.studentpass.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xl.studentpass.entity.CommunityEntity;
import com.xl.studentpass.entity.po.PostingDetailPo;
import com.xl.studentpass.entity.po.PostingInfoPo;
import com.xl.studentpass.entity.vo.CommunityVo;

import java.util.List;

/**
 * @author: xl
 * @createTime: 2023/5/29 20:08:01
 * @program: student-pass
 * @e-mail: 2199396150@qq.com
 * @description:
 */
public interface CommunityService extends IService<CommunityEntity> {
    /**
     * 发布帖子
     */
    Integer releasePosting(CommunityVo communityVo);

    Integer deletePosting(Integer userId, Integer communityId);

    List<PostingInfoPo> getList(Integer pageNo, Integer pageSize);

    Integer alterPosting(CommunityVo communityVo);


    PostingDetailPo getPostingDetailById(Integer communityId);

    List<PostingInfoPo> getPostingInfoPo(List<CommunityEntity> communities);
}
